package com.testmanager.testmananger.quantitative.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


@Data
@Accessors(chain = true)
public class TestInfoDto implements Serializable {
    private static final long serialVersionUID = -7281193663735846956L;
    private long id;
    private long testNo;
  /*  @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)*/
 // @DateTimeFormat
//  @JsonFormat
    private LocalDateTime scheduleTimeFrom;
   /* @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)*/
    private LocalDateTime scheduleTimeTo;
   /* @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)*/
    private LocalDateTime practiceTimeFrom;
/*    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)*/
    private LocalDateTime practiceTimeTo;
    private double progress;
    private String testCaseURL;
    private String quickTestCaseURL;
    private String riskPoint;
    private boolean submitTest;//提测情况
    private String env;//环境情况
    private List<WorkerDto> workers;
    private List<TaskInfoDto> tasks;
}
